<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
  <!-- sidebar start -->
  <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
      <ul class="am-list admin-sidebar-list">
      	<c:forEach var="menu" items="${requestScope.menus }" varStatus="status">
      		<li <c:if test="${menu.isLeaf == 0 }">class="admin-parent"</c:if>>
      			<c:if test="${menu.isLeaf == 1 }">
      			<a href="${staticHost }${menu.url }"><i class="${menu.icon }"></i> ${menu.name }</a>
      			</c:if>
      			<c:if test="${menu.isLeaf == 0 }">
      				<a class="am-cf" data-am-collapse="{target: '#collapse-nav-${status.index+1 }'}">
			          	<span class="${menu.icon }"></span> ${menu.name } <span class="am-icon-angle-right am-fr am-margin-right"></span>
			        </a>
      				<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav-${status.index+1 }">
      					<c:forEach var="cmenu" items="${menu.menus }">
      						<li><a href="${staticHost }${cmenu.url }"><i class="${cmenu.icon }"></i> ${cmenu.name }</a></li>
      					</c:forEach>
			        </ul>
      			</c:if>
      	</c:forEach>
      	</ul>
        <%-- <li><a href="<%=path %>/back/index"><span class="am-icon-home"></span> 首页</a></li>
        <li class="admin-parent">
          <a class="am-cf" data-am-collapse="{target: '#collapse-nav'}">
          	<span class="am-icon-file"></span> 系统管理 <span class="am-icon-angle-right am-fr am-margin-right"></span>
          </a>
          <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav">
            <li><a href="admin-user.html" class="am-cf"><span class="am-icon-check"></span> 个人资料</a></li>
            <li><a href="admin-help.html"><span class="am-icon-puzzle-piece"></span> 帮助页</a></li>
            <li><a href="admin-gallery.html"><span class="am-icon-th"></span> 相册页面</a></li>
            <li><a href="admin-log.html"><span class="am-icon-calendar"></span> 系统日志</a></li>
            <li><a href="admin-404.html"><span class="am-icon-bug"></span> 404</a></li>
          </ul>
        </li>
        <li><a href="<%=path %>/back/user/userList"><span class="am-icon-table"></span> 表格</a></li>
        <li><a href="admin-form.html"><span class="am-icon-pencil-square-o"></span> 表单</a></li>
        <li><a href="#"><span class="am-icon-sign-out"></span> 注销</a></li>
      </ul> --%>

      <div class="am-panel am-panel-default admin-sidebar-panel">
        <div class="am-panel-bd">
          <p><span class="am-icon-bookmark"></span> 公告</p>
          <p>时光静好，与君语；细水流年，与君同。—— 下课了</p>
        </div>
      </div>

      <div class="am-panel am-panel-default admin-sidebar-panel">
        <div class="am-panel-bd">
          <p><span class="am-icon-tag"></span> wiki</p>
          <p>Welcome to the Amaze UI wiki!</p>
        </div>
      </div>
    </div>
  </div>
  <!-- sidebar end -->